﻿using Manon.Admin.Web.ApplicationCore.Entities;
using Manon.Admin.Web.ApplicationCore.Entities.Company;
using Manon.Admin.Web.ApplicationCore.Entities.Member;
using Manon.Admin.Web.ApplicationCore.Entities.News;
using Manon.Admin.Web.ApplicationCore.Entities.Other;
using Manon.Admin.Web.ApplicationCore.Entities.Settings;
using Manon.Admin.Web.ApplicationCore.Entities.Sys;
using Manon.Repository;
using Microsoft.EntityFrameworkCore;

namespace Manon.Admin.ApplicationCore.Infrastructure
{
    public class AdminDbContext : ManonDbContext
    {
        public AdminDbContext(DbContextOptions<AdminDbContext> options) : base(options)
        {

        }

        public DbSet<Users> Users { get; set; }
        public DbSet<Roles> Roles { get; set; }
        public DbSet<UserRoles> UserRoles { get; set; }
        public DbSet<RoleMenus> RoleMenus { get; set; } 
        public DbSet<BaseEmailSettings> BaseEmailSettings { get; set; }
        public DbSet<BaseSafeSettings> BaseSafeSettings { get; set; }
        public DbSet<BaseSettings> BaseSettings { get; set; } 
        public DbSet<SysShielding> SysShielding { get; set; } 
        public DbSet<SysLog> SysLog { get; set; } 
        public DbSet<Chanel> Chanel { get; set; } 
        public DbSet<NewsCategory> NewsCategory { get; set; } 
        public DbSet<News> News { get; set; } 
        public DbSet<Member> Member { get; set; }
        public DbSet<FriendlyLink> FriendlyLink { get; set; }

        public DbSet<MemberLevel> MemberLevel { get; set; }

        public DbSet<Company> Company { get; set; }
    }
}
